//
//  text.h
//  wobingwoyi
//
//  Created by WGP on 2016/11/14.
//  Copyright © 2016年 WGP. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "WPEditeModel.h"
#import "WPVideoOrAudioModel.h"
#import "WPVideoAndVoiceCell.h"
#import "SDTransparentPieProgressView.h"

@class WPMRModel,WPMinePlaceholderTextView,TZAssetModel,WPAudioRecordVC,WPGetVideosFromPhotoVC;
@interface WPNewTreatmentInstructionsEditeVC : WPUMBaseViewController

@property(nonatomic,strong)WPMinePlaceholderTextView *textView;
@property(nonatomic,strong)UICollectionView *collectionView;
@property(nonatomic,assign)NSInteger rank;
@property(nonatomic,strong)UIButton *timeBtn;
@property(nonatomic,strong)NSMutableArray *photos;
@property(nonatomic,strong)NSMutableArray *pathArr;
@property(nonatomic,strong)NSMutableArray *imageNameArr;
@property(nonatomic,assign)NSInteger uploadingIndex;

@property(nonatomic,strong)WPMRModel *model;
@property(nonatomic,assign)BOOL isVisit;
@property(nonatomic,assign)NSInteger visitIndex;
@property(nonatomic,copy)void(^reloadBlock)();

-(void)saveBtnDidClick:(UIButton *)btn;
-(NSString *)deleteNewlineWith:(NSString *)str;
- (NSString *)textStringWithSymbol:(NSString *)symbol attributeString:(NSAttributedString *)attributeString;

#pragma mark - WPAudioRecordVCDelegate
-(void)WPAudioRecordVCDoneWith:(WPAudioRecordVC *)vc audio:(TZAssetModel *)model;
#pragma mark - WPGetVideosFromPhotoVCDelegate
-(void)WPGetVideosFromPhotoVCDoneWith:(WPGetVideosFromPhotoVC *)vc videos:(NSArray *)videos;
-(void)WPGetVideosFromCameraWith:(WPGetVideosFromPhotoVC *)vc videoModel:(TZAssetModel *)model;
-(void)uploadVideoOrAudioToServeWith:(TZAssetModel *)model index:(NSInteger)index;
-(void)showResultOfVideoOrAudioUploadWith:(BOOL)isSuccess;

@end
